<template>
  <div class="user-layout">
    <el-container>
      <el-aside width="200px">
        <el-menu
          router
          :default-active="$route.path"
          class="user-menu"
        >
          <el-menu-item index="/user/profile">
            <el-icon><User /></el-icon>
            <span>个人中心</span>
          </el-menu-item>
          <el-menu-item index="/user/settings">
            <el-icon><Setting /></el-icon>
            <span>设置</span>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script setup>
import { User, Setting } from '@element-plus/icons-vue'
</script>

<style scoped>
.user-layout {
  height: 100%;
}
.user-menu {
  height: 100%;
  border-right: solid 1px #e6e6e6;
}
</style> 